#include "Shm.hpp"
#include "Fifo.hpp"
int main()
{
    FileOper writerfile(PATH,FIFO_NAME);
    writerfile.OpenForWrite();
    
    
    Shm shm(pathname,projid,USER);
    char *mem =(char*)shm.VirtualAddr();
    int index = 0;
    for(char c = 'A';c <='Z';c++)
    {
        //向共享内存写入
        mem[index] = c;
        mem[index + 1] = c;
        mem[index + 2] = '\0';
        index+=2;
        writerfile.Wakeup();
        sleep(1);
    }
    writerfile.Close();
    return 0;
}